using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
using System.IO;

/// <summary>
/// AKS 1.0 - HiSoftware Inc.
/// CA DESIGN
/// Robert B. Yonaitis 
/// </summary>

namespace AKSAdapters
{
    public class AKS_AdvancedSearchBoxTxtbox_Adapter : System.Web.UI.WebControls.Adapters.WebControlAdapter
    {
        public AKS_AdvancedSearchBoxTxtbox_Adapter()
        {

        }

        protected override void Render(HtmlTextWriter output)
        {
            StringBuilder sb = new StringBuilder();
            HtmlTextWriter writer = new HtmlTextWriter(new StringWriter(sb));
            base.Render(writer);
            sb.Replace("<b>All</b> of these words:</label></td><td class=\"ms-advsrchText\"><input ", "<b>All</b> of these words:</label></td><td class=\"ms-advsrchText\"><input class=\"ms-advsrchPropValue\" ");
            sb.Replace("The exact <b>phrase</b>:</label></td><td class=\"ms-advsrchText\"><input ", "The exact <b>phrase</b>:</label></td><td class=\"ms-advsrchText\"><input class=\"ms-advsrchPropValue\" ");
            sb.Replace("<b>Any</b> of these words:</label></td><td class=\"ms-advsrchText\"><input ", "<b>Any</b> of these words:</label></td><td class=\"ms-advsrchText\"><input class=\"ms-advsrchPropValue\" ");
            sb.Replace("<b>None</b> of these words:</label></td><td class=\"ms-advsrchText\"><input ", "<b>None</b> of these words:</label></td><td class=\"ms-advsrchText\"><input class=\"ms-advsrchPropValue\" ");

            output.Write(sb.ToString());
        }
    }
}